package com.hust360.percent.pojo;

import java.io.Serializable;

public class Liked implements Serializable  {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -1073918309644593961L;

	public static final String TABLE = "liked";
	
	public Long id;
	public static final String ID = "id";
	public Long uid;
	public static final String UID  ="uid";
	public Long shopId;
	public static final String SHOP_ID = "shopId";
	
	public static interface LikedDAO {
		
		/**
		 * 存储一个收藏关系，返回该关系的id，如果返回-1，
		 * 则储存失败
		 * @param liked
		 * @return
		 */
		public long save(Liked liked);
		
		public void removeByUID(Long uid);
		
		public void removeByShopId (Long shopId);
	}
}
